package com.imau.service;

import com.imau.bean.User;
import com.imau.mapper.UserMapper;
import com.imau.common.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

public class UserServiceImpl {

    private SqlSession session;

    private UserMapper userMapper;



    public UserServiceImpl(){
        session=SqlSessionUtil.getSqlSession();
        userMapper=session.getMapper(UserMapper.class);
    }

    public User checkLogin(String username, String password){
        return userMapper.selectByNameAndPass(username,password);
    }
}



